package game;

import java.awt.Color;

public class SpeedField extends Field {
	public static final long serialVersionUID = 1L;
	protected int speed;
	
	public SpeedField(Level g, int x, int h, int width, int height, Color c, int s){
		super(g, x, h, width, height, c);
		speed = s;
	}
	
	@Override
	public void calculateIntersectEffects(GameRectangle g) {
		if(g instanceof Sprite){
			((Sprite) g).fxSpeed = speed;
		}
	}
	
	@Override
	public void update(){}
}
